package com.lexue.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * SysUser entity. @author MyEclipse Persistence Tools
 */

public class SysUser implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String userAccount;
	private String userPassword;
	private String userLevel;
	private String userEmail;
	private Byte isTeacher;
	private String state;
	private Set messages = new HashSet(0);
	private Set teacherInfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public SysUser() {
	}
	
	public void test(){
		System.out.println("sysUser is obtained.");
	}

	/** full constructor */
	public SysUser(String userAccount, String userPassword, String userLevel,
			String userEmail, Byte isTeacher, String state, Set messages,
			Set teacherInfos) {
		this.userAccount = userAccount;
		this.userPassword = userPassword;
		this.userLevel = userLevel;
		this.userEmail = userEmail;
		this.isTeacher = isTeacher;
		this.state = state;
		this.messages = messages;
		this.teacherInfos = teacherInfos;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserAccount() {
		return this.userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserLevel() {
		return this.userLevel;
	}

	public void setUserLevel(String userLevel) {
		this.userLevel = userLevel;
	}

	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public Byte getIsTeacher() {
		return this.isTeacher;
	}

	public void setIsTeacher(Byte isTeacher) {
		this.isTeacher = isTeacher;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

	public Set getTeacherInfos() {
		return this.teacherInfos;
	}

	public void setTeacherInfos(Set teacherInfos) {
		this.teacherInfos = teacherInfos;
	}

}